<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/16
 * Time: 9:38
 */

namespace app\index\controller;

use think\Loader;

class Test
{
    public function site()
    {
        $name = input('name');
        $sit = Loader::model('Site');
        $res[] = $sit->getSiteInfo($name, 'site_id');
        $res[] = $sit->getSiteInfo($name, 'site_code');
        $res[] = $sit->getSiteInfo($name, 'site_id');
        $res[] = $sit->getSiteInfo($name, 'site_code');
        $res[] = $sit->getSiteInfo($name, 'site_id');
        $res[] = $sit->getSiteInfo($name, 'site_code');
        $res[] = $sit->getSiteInfo($name, 'site_id');
        $res[] = $sit->getSiteInfo($name, 'site_code');
        return json_encode($res);
    }
}